<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<style>
    div.active{
        width: 200px;
        height: 30px;
        background: firebrick;
        /* margin:auto; */
    }
    
    
    p.active{
        height: 100px;
        width: 50px;
        background: dodgerblue;
        display: none;
    }
</style>

<body>
    <div class="active">ada</div>
    <p class="active">Lorem ipsum dolor sit amet consectetur adipisicing elit. Eaque similique suscipit, excepturi harum sit voluptatem at</p>




    <script>
       var a=document.getElementsByClassName("div");
       var pp=document.getElementsByClassName("pp");
       

    
    </script>
</body>

</html>